<?php

	session_start();

	include("../conexao/config.php");
	include("../class/ExercicioProfessor.php");
	
	$exercicioProfessor = new ExercicioProfessor();
	
	$row = $exercicioProfessor->exibeArquivosExercicios($_REQUEST['id_exercicio_professor']);
	
	if($row['foto_path']!=""){
		
		 $exibe_conteudo = "<img src='../arquivos/exercicios/imagem/".$row['foto_path']."' width='250' height='250'/></a>";
		
	}elseif($row['video_objeto']!=""){
		
		 $exibe_conteudo = "<object width='250' height='250'>
								<param name='movie' value='http://www.youtube.com/v/".$row['video_objeto']."'/>
								</param>
								<param name='allowFullScreen' value='true' />
								</param>
								<param name='allowscriptaccess' value='always' />
								</param>
								<embed src='http://www.youtube.com/v/".$row['video_objeto']."' 
								type='application/x-shockwave-flash' allowscriptaccess='always' allowfullscreen='true' width='250' height='250'>
								</embed>
							</object>";
		
	}else{
		$exibe_conteudo = "</br></br></br></br></br>espaço para fotos e videos";	
	}
	
	
	echo $exibe_conteudo;
	

?>


